package org.jeecg.modules.zcgl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.zcgl.entity.AssetImage;

import java.util.List;

/**
 * @Description: 资产图片信息
 * @Author: jeecg-boot
 * @Date:   2020-08-20
 * @Version: V1.0
 */
public interface AssetImageMapper extends BaseMapper<AssetImage> {

    List<AssetImage> selectByMainId(@Param("mainId") String mainId);
    /**
     * 逻辑删除
     * @param mainId
     * @return
     */
    public boolean deleteByMainId(@Param("mainId") String mainId);


    /**
     * 物理删除
     * @param mainId
     * @return
     */
    public boolean deletePhysicalByMainId(@Param("mainId") String mainId);
}
